interface IClockInterface {
    currentTime: Date;
    setTime(d: Date): void;
}

class Clock implements IClockInterface {
    public currentTime: Date;
    constructor(h: number, m: number){
        this.currentTime = new Date()
    }
    public setTime(d: Date) {
        this.currentTime = d
    }

    public getCurrentTime(): Date {
        return this.currentTime;
    }
}

export default Clock;